package com.ming.Mapper;

import com.ming.Bean.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface StudentMapper {

    @Select("select * from student")
    List<Student> getStduents();

    @Select("select * from student where stuid=#{id}")
    Student getStuById(int id);
}
